#ifndef STDFUNC_H
#define STDFUNC_H

#include <stdint.h>

#define _SYS_VER    "0.02"
char * __NASM_VER__;
extern void * kernel_start, * kernel_end;

void kmain_task(void);

static inline void cli(void)
{asm volatile("cli;");}

static inline void hlt(void)
{asm volatile("hlt;");}

static inline void abort(void)
{asm volatile("cli;hlt;");}

static inline uint32_t max(const uint32_t v1, const uint32_t v2)
{return v1 > v2 ? v1 : v2;}

static inline uint32_t min(const uint32_t v1, const uint32_t v2)
{return v1 < v2 ? v1 : v2;}

#endif

